<include file="Common/header" />
 
<title>编辑内容</title> 
<style>
table th{ padding:10px; line-height:2.2em; border-bottom:1px solid #E6E6E6; font-weight:normal !important;  border-right:1px solid #E6E6E6;}
table td{border-bottom:1px solid #E6E6E6; padding:10px 20px !important; position:relative}
#paginationtype{ width:80px; font-size:12px; height:31px;} 
#description{ height:100px !important}
.content_attr label{ font-size:12px}
.content_attr .input-text{ margin:0 5px; width:100px !important} 
</style>
</head>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
  <form name="myform" id="myform" action="" method="post" class="form form-horizontal" enctype="multipart/form-data">
  <div class="side-right">
    <div class="table_full">
      <table width="100%">
<?php
if(is_array($forminfos['senior'])) {
 foreach($forminfos['senior'] as $field=>$info) {
	if($info['isomnipotent']) continue;
	if($info['formtype']=='omnipotent') {
		foreach($forminfos['base'] as $_fm=>$_fm_value) {
			if($_fm_value['isomnipotent']) {
				$info['form'] = str_replace('{'.$_fm.'}',$_fm_value['form'],$info['form']);
			}
		}
		foreach($forminfos['senior'] as $_fm=>$_fm_value) {
			if($_fm_value['isomnipotent']) {
				$info['form'] = str_replace('{'.$_fm.'}',$_fm_value['form'],$info['form']);
			}
		}
	}
 ?>
         <tr>
          <td><b><?php echo $info['name']?></b><?php if($info['star']){ ?><font color="red">*</font><?php } ?></td>
        </tr>
        <tr>
            <td><?php echo $info['form'];?><span><?php echo $info['tips'];?></span></td>
        </tr>
<?php
   }
}
?>
         <tr>
          <td><b>状态</b></td>
        </tr>
        <tr>
          <td>
          <span class="switch_list cc">
			<label><input type="radio" name="info[status]" value="99" checked><span>审核通过</span></label>
			<label><input type="radio" name="info[status]" value="1"  ><span>待审核</span></label>
		 </span></td>
        </tr>
      </table>
    </div>
  </div>
  
  <div class="side-auto">
  <div style="padding:10px; overflow:hidden">
    <span style="color:#5eb95e; float:left" ><i class="Hui-iconfont" style="font-size:20px; ">&#xe60c;</i> 编辑内容 </span>
    <span style="float:right"><a  href="javascript:window.opener=null;window.open('','_self');window.close();"  class="btn btn-warning radius" style="background-color: #1ab394;border-color: #1ab394;">关闭返回</a></span>
    </div>
    
    <div class="table_full">
    <table class="table table-border">
            <?php
if(is_array($forminfos['base'])) {
 foreach($forminfos['base'] as $field=>$info) {
	 if($info['isomnipotent']) continue;
	 if($info['formtype']=='omnipotent') {
		foreach($forminfos['base'] as $_fm=>$_fm_value) {
			if($_fm_value['isomnipotent']) {
				$info['form'] = str_replace('{'.$_fm.'}',$_fm_value['form'],$info['form']);
			}
		}
		foreach($forminfos['senior'] as $_fm=>$_fm_value) {
			if($_fm_value['isomnipotent']) {
				$info['form'] = str_replace('{'.$_fm.'}',$_fm_value['form'],$info['form']);
			}
		}
	}
 ?>
            <tr>
              <th width="80">
                <?php echo $info['name'];?> 
               </th>
               <td><?php if($info['star']){ ?><span class="must_red">*</span><?php } ?><?php echo $info['form'];?> <span><?php echo $info['tips'];?></span></td>
            </tr>
            <?php
} }
?>
        </tbody>
      </table>
    </div>
  </div> 
  
   
  
  <div style="clear:both; height:51px;"></div>
  <div class="btn_wrap ldh_footer_fix" >
    <div class="btn_wrap_pd">
      
      <button class="btn btn-secondary radius" type="submit">提交</button> 
      <button class="btn btn-primary radius" onClick="window.opener=null;window.open('','_self');window.close();" type="button" style="margin-left:30px">关闭</button>
    </div>
  </div>
  
  <input type="hidden" name="catid" value="{$catid}"/>
  </form>
</div>
 
 
 <script type="text/javascript">

 
 
function swfupload(onthis,idclass,filetype,ty){
	  id_class=idclass;
	  upurl="/{:C('Swfupload.uploadDir')}/";
	  ty_=ty; 
	  
		if(!filetype){filetype='Images';}
			 hidoger.setconfig={ 
	 			type:filetype, 
				auto:true  ,
				 
	 		 };  	
			
			 layer.open({ 
			  type: 2,
			  title: '附件上传',
			  shadeClose: true,      
			  shade: 0.2,
			  area: ['70%', '550px'],
			  content: '{:U("Swfupload/index")}?type='+filetype, 
			  scrollbar: false 
			}); 
			
				
			  
	} 

 $(function(){
	 $("#parentid").children('option').each(function(){ 
		 if($(this).val()=='{$pid}'){
		 	 $(this).attr("selected",true);
			 return true;
			 
			 }
		 
		 });
	 
	 
	 });

</script> 

</body>
</html>